package com.bosssoft.hr.jobmonitor.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/***
 * @Author lys(cherish)
 * @Description 日志工具
 * @Date  2019/2/27
 **/
public class LoggerUtil {

    /***
     * @Author lys(cherish)
     * @Description 自定义log格式输入
     * @Date  2019/2/27
     * @Param [objects] 输入消息
     * @return java.lang.String
     **/
    public static String fmtLog(Object ... objects){
        StringBuilder stringBuilder = new StringBuilder();
        int index=1;
        for (Object o:objects) {
            stringBuilder.append("【message"+index+"】"+o.toString()+"  ");
            index++;
        }
        String logstr = stringBuilder.toString();
        return logstr;
    }

}
